package com.example.springthymeleafproject.service;

import com.example.springthymeleafproject.model.Department;
import com.example.springthymeleafproject.model.Device;
import org.springframework.data.domain.Page;

import java.util.List;

public interface DepartmentService {
    //查找所有部门
    List<Department> getAllDepartment();

    //新增部门
    void saveDepartment(Department department);

    //获取指定ID的的部门
    Department getDepartmentId(long id);

    //分页并通过字段排序
    Page<Department> findDepartmentPaginated(int pageNo, int pageSize, String sortField, String sortDirection);

}
